#ifndef PAGEALARMMGMT_H
#define PAGEALARMMGMT_H

#include <QWidget>
#include <QSqlTableModel>


namespace Ui {
class pageAlarmMgmt;
}

class pageAlarmMgmt : public QWidget
{
    Q_OBJECT

public:
    explicit pageAlarmMgmt(QWidget *parent = nullptr);
    ~pageAlarmMgmt();

private slots:
    void onAddRule();
    void onDeleteRule();
    void refreshTables();

private:
    Ui::pageAlarmMgmt *ui;
    QSqlTableModel *ruleModel;
    QSqlTableModel *recordModel;
    void setupTables();
};

#endif // PAGEALARMMGMT_H
